package controller

import (
	"chatgpt/ai/openai"
	"chatgpt/helper"
	"chatgpt/helper/code"
	"github.com/gin-gonic/gin"
)

func FineTuneListHandle(ctx *gin.Context) {
	//mod := ctx.Query("list")

	res, err := openai.AppChatGPT.ListFineTunes()
	//if mcode == code.SUCCESS && !openai.AppChatGPT.Unsafe(question, mod) {
	//	replay = dirtywords.DirtyWords().Replace(replay)
	//}
	if err != nil {
		helper.Echo(ctx, code.DATA_CALL_ERROR, err)
		return
	}
	helper.Echo(ctx, int(code.SUCCESS), res.Data)
}
